package org.sparkle.db.basic;

import org.sparkle.db.company.CompanyService;
import org.sparkle.db.company.CompanyServiceImpl;
import org.sparkle.db.group.GroupService;
import org.sparkle.db.group.GroupServiceImpl;
import org.sparkle.db.user.UserService;
import org.sparkle.db.user.UserServiceImpl;

public class ServiceManager {

	private CompanyService companyService;
	private GroupService groupService;
	private UserService userService;
	
	public GroupService getGroupService(){
		if(groupService==null)
			groupService=new GroupServiceImpl();
		return groupService;
	}

	public UserService getUserService() {
		if(userService==null)
			userService=new UserServiceImpl();
		return userService;
	}

	public CompanyService getCompanyService() {
		if(companyService==null)
			companyService=new CompanyServiceImpl();
		return companyService;
	}

}
